/**
 * @Title: CameraPhotoDeleteMultiSetter.java
 * @Package com.sinotn.ks.node.camera.dao.jdbc.setter
 * @Description: TODO
 * Copyright: Copyright (c) 2015
 * Company:北京信诺软通
 */
package com.sinotn.ks.node.camera.dao.jdbc.setter;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;

import org.springframework.jdbc.core.BatchPreparedStatementSetter;

import com.sinotn.ks.node.camera.vo.CameraPhotoVO;

/**
 * @Title CameraPhotoDeleteMultiSetter.java
 * @Package com.sinotn.ks.node.camera.dao.jdbc.setter
 * @Description 
 * Copyright: Copyright (c) 2015
 * Company:北京信诺软通
 * 
 * @author <a href="mailto:liyunfeng@sinotn.com">李云峰</a>
 * @date 2017年7月13日 下午6:02:44
 * @version V1.0
 */
public class CameraPhotoDeleteMultiSetter implements BatchPreparedStatementSetter {
	private List<CameraPhotoVO> photoList;
	
	public CameraPhotoDeleteMultiSetter(List<CameraPhotoVO> photoList) {
		this.photoList = photoList;
	}

	@Override
	public void setValues(PreparedStatement ps, int i) throws SQLException {
		CameraPhotoVO cameraPhotoVO = this.photoList.get(i);
		ps.setString(1, cameraPhotoVO.getId());
	}

	@Override
	public int getBatchSize() {
		return photoList.size();
	}

}
